package behavior.responsibility_chain;

public class SchoolMasterApprover extends Approver {

    public SchoolMasterApprover(String name) {
        super(name);
    }

    @Override
    void processRequest(PurchaseRequest purchaseRequest) {
        if(purchaseRequest.price >= 3000){
            System.out.println(this.name + "处理");
        }else {
            approver.processRequest(purchaseRequest);
        }
    }
}
